// @ts-ignore
/* eslint-disable */
import request from "../request/request";

/** addAppointments POST /api/appointments/add */
export async function addAppointmentsUsingPost(body, options) {
  return request("/api/appointments/add", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteAppointments POST /api/appointments/delete */
export async function deleteAppointmentsUsingPost(body, options) {
  return request("/api/appointments/delete", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** editAppointments POST /api/appointments/edit */
export async function editAppointmentsUsingPost(body, options) {
  return request("/api/appointments/edit", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** getAppointmentsVOById GET /api/appointments/get/vo */
export async function getAppointmentsVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params,
  options
) {
  return request("/api/appointments/get/vo", {
    method: "GET",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listAppointmentsByPage POST /api/appointments/list/page */
export async function listAppointmentsByPageUsingPost(body, options) {
  return request("/api/appointments/list/page", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** listAppointmentsVOByPage POST /api/appointments/list/page/vo */
export async function listAppointmentsVoByPageUsingPost(body, options) {
  return request("/api/appointments/list/page/vo", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** listMyAppointmentsVOByPage POST /api/appointments/my/list/page/vo */
export async function listMyAppointmentsVoByPageUsingPost(body, options) {
  return request("/api/appointments/my/list/page/vo", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** updateAppointments POST /api/appointments/update */
export async function updateAppointmentsUsingPost(body, options) {
  return request("/api/appointments/update", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}
